

        <div class="sidebar" id="sidebar">
            <script type="text/javascript">
                try{ace.settings.check('sidebar' , 'fixed')}catch(e){}
            </script>

            <div class="sidebar-shortcuts" id="sidebar-shortcuts">
                <div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
                    <button class="btn btn-success">
                        <i class="icon-signal"></i>
                    </button>

                    <button class="btn btn-info">
                        <i class="icon-pencil"></i>
                    </button>

                    <button class="btn btn-warning">
                        <i class="icon-group"></i>
                    </button>

                    <button class="btn btn-danger">
                        <i class="icon-cogs"></i>
                    </button>
                </div>

                <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
                    <span class="btn btn-success"></span>

                    <span class="btn btn-info"></span>

                    <span class="btn btn-warning"></span>

                    <span class="btn btn-danger"></span>
                </div>
            </div><!-- #sidebar-shortcuts -->

            <ul class="nav nav-list">
                <li <?php if($activeFirst === 'default' && $activeSecond === 'index'): echo 'class="active"';endif?>>
                    <a href="/index.html">
                        <i class="icon-dashboard"></i>
                        <span class="menu-text"> 首页 </span>
                    </a>
                </li>

                <li <?php if($activeFirst === 'order' && $activeSecond === 'index'): echo 'class="active"';endif?>>
                    <a href="/order.html">
                        <i class="icon-edit"></i>
                        <span class="menu-text"> 订单管理 </span>
                    </a>
                </li>

                <li <?php if($isGoods = $activeFirst === 'goods'): echo 'class="active open"';endif?>>
                    <a href="#" class="dropdown-toggle">
                        <i class="icon-list-alt"></i>
                        <span class="menu-text"> 商品管理 </span>

                        <b class="arrow icon-angle-down"></b>
                    </a>

                    <ul class="submenu">
                        <li <?php if($isGoods && $activeSecond === 'index'): echo 'class="active"';endif?>>
                            <a href="/goods.html">
                                <i class="icon-double-angle-right"></i>
                                管理商品
                            </a>
                        </li>

                        <li <?php if($isGoods && $activeSecond === 'create'): echo 'class="active"';endif?>>
                            <a href="/goods-pub.html">
                                <i class="icon-double-angle-right"></i>
                                发布商品
                            </a>
                        </li>
                    </ul>
                </li>

                <li <?php if($isProduct = $activeFirst === 'product'): echo 'class="active open"';endif?>>
                    <a href="#" class="dropdown-toggle">
                        <i class="icon-list-alt"></i>
                        <span class="menu-text"> 产品管理 </span>

                        <b class="arrow icon-angle-down"></b>
                    </a>

                    <ul class="submenu">

                        <li <?php if($isProduct && $activeSecond === 'index'): echo 'class="active"';endif?>>
                            <a href="/product.html">
                                <i class="icon-double-angle-right"></i>
                                管理产品
                            </a>
                        </li>

                        <li <?php if($isProduct && $activeSecond === 'create'): echo 'class="active"';endif?>>
                            <a href="/product-pub.html">
                                <i class="icon-double-angle-right"></i>
                                发布产品
                            </a>
                        </li>

                        <li <?php if($isProduct && $activeSecond === 'brand'): echo 'class="active"';endif?>>
                            <a href="/product-brand.html">
                                <i class="icon-double-angle-right"></i>
                                产品品牌
                            </a>
                        </li>

                        <li <?php if($isProduct && $activeSecond === 'category'): echo 'class="active"';endif?>>
                            <a href="/product-category.html">
                                <i class="icon-double-angle-right"></i>
                                产品分类
                            </a>
                        </li>
                    </ul>
                </li>

                <li <?php if($isUser = $activeFirst === 'user'): echo 'class="active open"';endif?>>
                    <a href="#" class="dropdown-toggle">
                        <i class="icon-list-alt"></i>
                        <span class="menu-text"> 会员管理 </span>

                        <b class="arrow icon-angle-down"></b>
                    </a>

                    <ul class="submenu">

                        <li <?php if($isUser && $activeSecond === 'index'): echo 'class="active"';endif?>>
                            <a href="/user.html">
                                <i class="icon-double-angle-right"></i>
                                管理会员
                            </a>
                        </li>

                        <li <?php if($isUser && $activeSecond === 'role'): echo 'class="active"';endif?>>
                            <a href="/user-role.html">
                                <i class="icon-double-angle-right"></i>
                                会员角色
                            </a>
                        </li>

                        <li <?php if($isUser && $activeSecond === 'rule'): echo 'class="active"';endif?>>
                            <a href="/user-rule.html">
                                <i class="icon-double-angle-right"></i>
                                规则管理
                            </a>
                        </li>
                    </ul>
                </li>

                <li <?php if($isArticle = $activeFirst === 'article'): echo 'class="active open"';endif?>>
                    <a href="#" class="dropdown-toggle">
                        <i class="icon-list-alt"></i>
                        <span class="menu-text"> 文章管理 </span>
                        <b class="arrow icon-angle-down"></b>
                    </a>

                    <ul class="submenu">

                        <li <?php if($isArticle && $activeSecond === 'index'): echo 'class="active"';endif?>>
                            <a href="/article.html">
                                <i class="icon-double-angle-right"></i>
                                管理文章
                            </a>
                        </li>

                        <li <?php if($isArticle && $activeSecond === 'create'): echo 'class="active"';endif?>>
                            <a href="/article-pub.html">
                                <i class="icon-double-angle-right"></i>
                                发布文章
                            </a>
                        </li>

                    </ul>
                </li>

                <li <?php if($activeFirst === 'language' && $activeSecond === 'index'): echo 'class="active"';endif?>>
                    <a href="/language.html">
                        <i class="icon-edit"></i>
                        <span class="menu-text"> 语言管理 </span>
                    </a>
                </li>

                <li <?php if($activeFirst === 'color' && $activeSecond === 'index'): echo 'class="active"';endif?>>
                    <a href="/color.html">
                        <i class="icon-edit"></i>
                        <span class="menu-text"> 颜色管理 </span>
                    </a>
                </li>

                <li <?php if($activeFirst === 'comment' && $activeSecond === 'index'): echo 'class="active"';endif?>>
                    <a href="/comment.html">
                        <i class="icon-edit"></i>
                        <span class="menu-text"> 评论管理 </span>
                    </a>
                </li>

                <li <?php if($activeFirst === 'set' && $activeSecond === 'index'): echo 'class="active"';endif?>>
                    <a href="/set-base.html">
                        <i class="icon-edit"></i>
                        <span class="menu-text"> 基本设置 </span>
                    </a>
                </li>

                <li <?php if($activeFirst === 'set' && $activeSecond === 'about'): echo 'class="active"';endif?>>
                    <a href="/set-about.html">
                        <i class="icon-edit"></i>
                        <span class="menu-text"> 关于我们 </span>
                    </a>
                </li>


            </ul><!-- /.nav-list -->

            <div class="sidebar-collapse" id="sidebar-collapse">
                <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
            </div>

            <script type="text/javascript">
                try{ace.settings.check('sidebar' , 'collapsed')}catch(e){}
            </script>
        </div>